package com.recommend.recommendkeyword.mapper;

import com.recommend.recommendkeyword.entity.SearchHistory;
import com.recommend.recommendkeyword.vo.OccurrenceCountVO;
import org.apache.ibatis.annotations.Mapper;

import java.sql.Timestamp;
import java.util.List;

@Mapper
public interface SearchHistoryMapper {
    int insertHistory(int userId, int keywordId, Timestamp searchTime);

    List<SearchHistory> getUserHistory(int userId);

    List<OccurrenceCountVO> getKeywordsCount();

    List<OccurrenceCountVO> getUserWordsCount(int userId);
}
